//
//  YDBasicAlgorithmController.swift
//  YDLeetcode
//
//  Created by 王允顶 on 2019/10/8.
//  Copyright © 2019 王允顶. All rights reserved.
//

import UIKit

class YDBaseAlgorithmController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
        self.addAllView()
        self.setAllViewsFrame()
        // Do any additional setup after loading the view.
    }
    
    lazy var tableView: UITableView = {
        let tableview = UITableView()
        return tableview
    }()

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}

// MARK: ==== 添加View ====
extension YDBaseAlgorithmController {
    
    func addAllView() {
        self.view.addSubview(self.tableView)
    }
    
}

// MARK: ==== 设置frame ====
extension YDBaseAlgorithmController {
    
    func setAllViewsFrame() {
        self.tableView.frame = self.view.bounds
    }
    
}
